﻿using System.Collections.Generic;

namespace BankOcrDojo
{
    public static partial class BankOcrParser
    {
        private static readonly Dictionary<SegmentZiffer, Ziffer> m_SegmentZiffernAlsZiffern = new Dictionary<SegmentZiffer, Ziffer>();

        static BankOcrParser()
        {
            m_SegmentZiffernAlsZiffern.Add( new SegmentZiffer( " _ ,| |,|_|".Split( ',' ) ), new Ziffer( 0 ) );
            m_SegmentZiffernAlsZiffern.Add( new SegmentZiffer( "   ,  |,  |".Split( ',' ) ), new Ziffer( 1 ) );
            m_SegmentZiffernAlsZiffern.Add( new SegmentZiffer( " _ , _|,|_ ".Split( ',' ) ), new Ziffer( 2 ) );
            m_SegmentZiffernAlsZiffern.Add( new SegmentZiffer( " _ , _|, _|".Split( ',' ) ), new Ziffer( 3 ) );
            m_SegmentZiffernAlsZiffern.Add( new SegmentZiffer( "   ,|_|,  |".Split( ',' ) ), new Ziffer( 4 ) );
            m_SegmentZiffernAlsZiffern.Add( new SegmentZiffer( " _ ,|_ , _|".Split( ',' ) ), new Ziffer( 5 ) );
            m_SegmentZiffernAlsZiffern.Add( new SegmentZiffer( " _ ,|_ ,|_|".Split( ',' ) ), new Ziffer( 6 ) );
            m_SegmentZiffernAlsZiffern.Add( new SegmentZiffer( " _ ,  |,  |".Split( ',' ) ), new Ziffer( 7 ) );
            m_SegmentZiffernAlsZiffern.Add( new SegmentZiffer( " _ ,|_|,|_|".Split( ',' ) ), new Ziffer( 8 ) );
            m_SegmentZiffernAlsZiffern.Add( new SegmentZiffer( " _ ,|_|, _|".Split( ',' ) ), new Ziffer( 9 ) );
        }
    }
}